package com.fangzc.springboot.demo.common.param;

/**
 * Copyright (C) 2014-2016 天津紫藤科技有限公司. Co. Ltd. All Rights Reserved.
 *
 * @author fangzc
 * @version v1
 * @description REST接口返回枚举
 * @date 2019-5-28
 */
public enum EnumRetCode {

    SUCCESS("0000", "请求成功"),

    PARAM_EMPTY("0001", "参数为空"),

    PARAM_ERROR("0002", "参数错误"),

    SIGN_ERROR("0003", "签名错误"),

    SYSTEM_ERROR("9999", "系统异常");

    EnumRetCode(String code, String info) {
        this.code = code;
        this.info = info;
    }

    /**
     * 异常编码
     */
    private String code;
    /**
     * 异常信息
     */
    private String info;

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
